package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.InvoiceApplyBean;
import com.molichuxing.services.infrastructure.dto.response.InvoiceApplyDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 发票申请 Mapper 接口
 * </p>
 *
 * @author zhaopenghui
 * @since 2019-09-20
 */
public interface InvoiceApplyMapper extends RootMapper<InvoiceApplyBean> {

    /**
     * 通过id集合获取申请
     *
     * @param ids
     * @return
     */
    List<InvoiceApplyBean> getListByIds(@Param("ids") List<Integer> ids);

    /**
     * 通过订单号或用户获取发票
     *
     * @param orderCode
     * @param userId
     * @return
     */
    List<Integer> getIdsByOrderOrUser(@Param("orderCode") Long orderCode, @Param("userId") Integer userId, @Param("invoiceTitleType") Integer invoiceTitleType);


}